package cn.terminus.client.customer.contractsellbystagesinfo.service;

import cn.terminus.client.customer.contractsellbystagesinfo.param.ContractSellByStagesInfoNewParam;
import cn.terminus.client.customer.contractsellbystagesinfo.param.ContractSellByStagesInfoEditParam;
import cn.terminus.client.customer.contractsellbystagesinfo.param.ContractSellByStagesInfoQueryParam;
import cn.terminus.client.customer.contractsellbystagesinfo.param.ContractSellByStagesInfoDeleteParam;
import cn.terminus.client.customer.contractsellbystagesinfo.param.ContractSellByStagesInfoGetsParam;
import cn.terminus.client.customer.contractsellbystagesinfo.result.ContractSellByStagesInfoResult;

import cn.terminus.result.common.result.TerminusResult;
import cn.terminus.result.common.page.TerminusPageAble;
import cn.terminus.result.common.page.TerminusPageInfo;
import cn.terminus.result.common.exception.DataAccessException;
import cn.terminus.result.common.exception.ServiceException;
import cn.terminus.result.common.context.TerminusCallContext;

import java.util.List;

/**
 * (ContractSellByStagesInfo)表服务接口
 *
 * @author makejava
 * @since 2021-07-21 11:16:43
 */
public interface ContractSellByStagesInfoService {

    /**
     * 新增
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<String> add(ContractSellByStagesInfoNewParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 更新
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> update(ContractSellByStagesInfoEditParam param, TerminusCallContext context) throws ServiceException;


    /**
     * gets
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<ContractSellByStagesInfoResult>> gets(ContractSellByStagesInfoGetsParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 删除
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> delete(ContractSellByStagesInfoDeleteParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 查询
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<ContractSellByStagesInfoResult>> query(ContractSellByStagesInfoQueryParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 分页查询
     *
     * @param param
     * @param page
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<TerminusPageAble<ContractSellByStagesInfoResult>> page(ContractSellByStagesInfoQueryParam param, TerminusPageInfo page, TerminusCallContext context) throws ServiceException;
}
